<?php
class C_smarty extends controller{
	
	function regfunction(){
		$this->view->register_function('date','date');
		$this->view->assgin('version',$this->view->SMARTY_VERSION);
		$this->view->display('smarty/regfunction');
	}
	
	static function  date(){
		echo date('Y-m-d H:i:s');
	}
}